package com.example.volleyball.playcharting.android;

public final class BEUIConverter 
{
	public static int[] convertUItoBE(int[] UICoords)
	{
		int[] BECoords = new int[2];
		BECoords[1] = UICoords[0];
		BECoords[0] = UICoords[1];
		BECoords[1] = 59 - BECoords[1];
		return BECoords;
	}
	
	public static int[] convertBEtoUI(int[] BECoords)
	{
		int[] UICoords = new int[2];
		BECoords[1] = 59 - BECoords[1];
		UICoords[0] = BECoords[1];
		UICoords[1] = BECoords[0];
		return UICoords;
	}
	
	public static int[] convertUItoBE(int UIx, int UIy)
	{
		int[] BECoords = new int[2];
		BECoords[1] = UIx;
		BECoords[0] = UIy;
		BECoords[1] = 59 - BECoords[1];
		return BECoords;
	}
	
	public static int[] convertBEtoUI(int BEx, int BEy)
	{
		int[] UICoords = new int[2];
		BEy = 59 - BEy;
		UICoords[0] = BEy;
		UICoords[1] = BEx;
		return UICoords;
	}
}
